<template>
    <div style="width: 100%;">
        <div class="header" style="background-color: white">
            <el-page-header @back="goBack" content="第三方公司竞标记录">
            </el-page-header>
            <el-divider></el-divider>
        </div>

        <el-tabs v-model="activeName" type="card">
            <el-tab-pane label="采购竞标记录" name="采购竞标记录">
                <goods-bidding-history v-if="activeName=='采购竞标记录'"></goods-bidding-history>
            </el-tab-pane>
            <el-tab-pane label="分包竞标记录" name="分包竞标记录">
                <sub-bidding-history v-if="activeName=='分包竞标记录'"></sub-bidding-history>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
    const GoodsBiddingHistory = () => import('./GoodsBiddingHistory.vue')
    const SubBiddingHistory = () => import('./SubBiddingHistory.vue')

    export default {
        data() {
            return {
                activeName:'采购竞标记录'
            }
        },
        methods:{
            goBack(){
                history.back()
            }
        },
        components:{
            GoodsBiddingHistory,
            SubBiddingHistory
        }
    }
</script>

<style scoped>

</style>
